import request from "@/utils/request";

// 登录请求
export function login(data) {
  return request({
    url: "/sys/login",
    method: "post",
    data,
  });
}

// 获取用户基本资料
export function getUserProfile() {
  return request({
    url: "/sys/profile",
    method: "post",
  });
}

// 获取用户头像
export function getUSerDetailById(id) {
  return request({
    url: `/sys/user/${id}`,
  });
}
